package fr.ensma.ia.miniblog.sbeans;

import fr.ensma.ia.miniblog.exception.PersistanceException;
import fr.ensma.ia.miniblog.persistence.Article;
import fr.ensma.ia.miniblog.persistence.Auteur;
import fr.ensma.ia.miniblog.persistence.Categorie;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author LeBlero
 */
@Local
public interface IArticleLocal {

    public Article createArticle(Article a) throws PersistanceException;

    public Article getArticleById(Long id);

    public void deleteArticle(Article a);

    public List<Article> getAllArticles();

    public List<Article> getArticlesByMotCle(String motCle);

    public List<Article> getArticleByCategorie(Categorie c);

    public List<Article> getArticleByAuteur(Auteur a);
}
